package kkb.object;

import java.text.ParseException;

public class ObjectsTest {


    public static void main(String[] args) throws ParseException {
        //线程不安全
        StringBuilder sb = new StringBuilder();
        sb.append("春眠不觉晓，");
        sb.append("处处闻啼鸟。");
        sb.append("夜来风雨声，");
        sb.append("花落知多少。");
        //StringBuffer 的toString方法：转字符串
        String a = sb.toString();
        System.out.println(a);

    }
}
